<template>
  <div>
    <prescribeDetails :prescribeInfo.sync="prescribeInfo" @closePreDetails="closePreDetails"></prescribeDetails>
    <div class="medic_t">
      <!--           <p><input type="button" value="开药方" class="input_search" @click="doPrescribe"></p> -->
      <!-- <mt-button type="default" @click="closePreDetails" style="width:30%">关    闭</mt-button> -->
      <!-- <el-button type="primary" @click="goOpenPrescribe" style="width:30%">修改处方</el-button> -->
      <!-- <span><input type="button" value="返    回" class="input_search1_1" @click="closePreDetails"></span>
      <span><input type="button" value="修改处方" class="input_search2_1" @click="goOpenPrescribe"></span> -->
    </div>
  </div>
</template>
<script>
import prescribeDetails from '~/components/pagetwo/prescribeDetails.vue';

export default {
  data() {
    return {

    };
  },
  props: {
    prescribeInfo: {
      type: Object,
    },
  },

  components: {
    prescribeDetails,
  },

  created() {
    this.$root.showfooter = false;
    // this.getlist();

    // 初始化处方号
    // this.prescribeNum = ?
  },
  destroyed() {
    this.$root.showfooter = true;
  },

  methods: {
    /* 继续开处方 */
    /* 返回 */
    /* 获取处方信息 */
    closePreDetails() {
      this.$emit('closePreDetails');
    },
    goOpenPrescribe() {
      this.$emit('goOpenPrescribe', this.prescribeInfo);
    },
    closeTip() {
      this.showAlert = false;
    },
  },
};
</script>
<style>
.medic_t{
  position: fixed;
  z-index: 999;
  bottom: 0;
  width: 100%;
  display: flex;
  flex-direction: row;
  justify-content: space-around;
  padding: .5rem;
}
.medic_t span{
  display: flex;
  justify-content: center;
  flex-direction: row;
  justify-content: center;
  width: 100%;
}

</style>
